﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System;

namespace SidebarStarted.ViewModels;

public partial class TestTwoPageViewModel : ViewModelBase
{
    public TestTwoPageViewModel()
    {
        Content = "测试页面2";
    }

    [ObservableProperty]
    private string _content;

    [RelayCommand]
    private void TestButton()
    {
        Content = Guid.NewGuid().ToString();
    }
}